package com.bwie.controller;

import com.bwie.service.ProdInfoService;
import com.bwie.utils.Result;
import com.bwie.vo.PageInfoVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import sun.security.krb5.internal.PAEncTSEnc;

/**
 * @Author: TaoShiHao
 * @Date: 2025/5/29 18:27
 * @Description:
 **/
@RestController
@RequestMapping("/shop/prodInfo")
@Api(tags = "商品详情")
public class ProdInfoController {

    @Autowired
    ProdInfoService prodInfoService;

    @PostMapping("/getProdInfoList")
    @ApiOperation(value = "分页获取商品详情列表")
    public Result getProdInfoList(@RequestBody PageInfoVo pageInfoVo){
        return prodInfoService.getProdInfoList(pageInfoVo);
    }
}
